package com.shareroad.dubboweb.frame.dao.data;

import java.util.ArrayList;
import java.util.List;

import com.shareroad.dubboweb.frame.dao.po.DubboWebPO;

public class DubboWebData {
	private static List<DubboWebPO> dubboWebDataList = new ArrayList<DubboWebPO>();
	
	public static List<DubboWebPO> getAllData(){
		return dubboWebDataList;
	}
	
	public static void addData(DubboWebPO dubboWebPO){
		dubboWebDataList.add(dubboWebPO);
	}
	
	
	public static DubboWebPO getDataByJarName(String jarName){
		for(DubboWebPO dubboWebPO : dubboWebDataList){
			if(jarName.equals(dubboWebPO.jarName)){
				return dubboWebPO;
			}
		}
		return null;
	}

}
